<?php

class Caterers extends Zend_Db_Table_Abstract
{
    protected $_name = 'caterers';
    public function setCaterersAndMenusForBranch( $bigxml, $branch_number )
    {
        $this->delete("branch='$branch_number'");

        $data = array(
            "branch" => $branch_number,
            "bigxml" => $bigxml
        );

        return $this->insert( $data );
    }
    
    public function getCaterersAndMenusForBranch( $branch_number )
    {
        $r = $this->fetchRow("branch='$branch_number'");
        if($r)
            return array( $r->bigxml );
        else
            return array();
    }
}

?>
